#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TrainProject : Business.BusinessBase<TrainProject, int>
	{
		#region Fields and Properties

		private String feeDes = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FeeDes
		{
			get { return feeDes; }
			set
			{
				if (value != feeDes)
				{
					MarkChanged("FeeDes");
					feeDes = value;
				}
			}
		}

		private Decimal fee = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Fee
		{
			get { return fee; }
			set
			{
				if (value != fee)
				{
					MarkChanged("Fee");
					fee = value;
				}
			}
		}

		private String projectCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectCate
		{
			get { return projectCate; }
			set
			{
				if (value != projectCate)
				{
					MarkChanged("ProjectCate");
					projectCate = value;
				}
			}
		}

		private String email = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Email
		{
			get { return email; }
			set
			{
				if (value != email)
				{
					MarkChanged("Email");
					email = value;
				}
			}
		}

		private String phone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Phone
		{
			get { return phone; }
			set
			{
				if (value != phone)
				{
					MarkChanged("Phone");
					phone = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String contrator = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Contrator
		{
			get { return contrator; }
			set
			{
				if (value != contrator)
				{
					MarkChanged("Contrator");
					contrator = value;
				}
			}
		}

		private DateTime pjctEndDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime PjctEndDate
		{
			get { return pjctEndDate; }
			set
			{
				if (value != pjctEndDate)
				{
					MarkChanged("PjctEndDate");
					pjctEndDate = value;
				}
			}
		}

		private int pjctConsistDate = 0;
		/// <summary>
		/// 
		/// </summary>
		public int PjctConsistDate
		{
			get { return pjctConsistDate; }
			set
			{
				if (value != pjctConsistDate)
				{
					MarkChanged("PjctConsistDate");
					pjctConsistDate = value;
				}
			}
		}

		private DateTime pjctStartDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime PjctStartDate
		{
			get { return pjctStartDate; }
			set
			{
				if (value != pjctStartDate)
				{
					MarkChanged("PjctStartDate");
					pjctStartDate = value;
				}
			}
		}

		private String projectName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectName
		{
			get { return projectName; }
			set
			{
				if (value != projectName)
				{
					MarkChanged("ProjectName");
					projectName = value;
				}
			}
		}

		private String projectCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectCode
		{
			get { return projectCode; }
			set
			{
				if (value != projectCode)
				{
					MarkChanged("ProjectCode");
					projectCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TrainProject()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TrainProject DataSelect(int id)
		{
			return Services.DALService.TrainProjectService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TrainProjectService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TrainProjectService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TrainProjectService.Delete(this);
		}

		#endregion Base overrides
	}
}
